CXX = g++
CXXFLAGS = -Wall -fPIC -shared
CXXLINK = -lprotobuf -luuid -lpthread
CXXOPT = $(CXXFLAGS) $(CXXLINK)

OBJ = error_code.pb.o message.pb.o base_channel.o
LIBNAME = libskeleton.so

libskeleton.so : $(OBJ)
	$(CXX) $(CXXOPT) -o $(LIBNAME) $(OBJ)

.PHONY : clean
clean:
	-rm $(LIBNAME) $(OBJ)